package com.changli05._map.exer1;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Scanner;

public class MapTest {
/*
1
林俊杰
黑夜问白天
1
邓紫棋
泡沫
0
* */

    public static void main(String[] args) {

        Map m = new HashMap();
        Scanner sc = new Scanner(System.in);
        while(true){
            int isContinue  = sc.nextInt();
            if(isContinue==1){

                String Musician = sc.next();
                String music = sc.next();
                m.put(Musician, music);
            }
            else if(isContinue ==0){
                break;
            }
        }
        Iterator it = m.entrySet().iterator();
        while(it.hasNext()){
            Map.Entry entry = (Map.Entry)it.next();
            System.out.println("Musician: "+entry.getKey()+"  Music:"+entry.getValue());
        }
    }
}
